<template>
  <div>
    <ul v-for="(item, index) in arr" :key="index">
      <li>{{ item }}</li>
    </ul>
    <button @click="zyz">走一走</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['帅哥', '美女', '程序员']
    }
  },
  methods: {
    zyz () {
      let a = this.myArr[0]
      this.myArr.splice(0, 1)
      this.myArr.push(a)
    }
  }
}
</script>

<style></style>
